'''
演示贪婪匹配和非贪婪匹配
'''
import re

html = """
<div><p>红酥手，黄縢酒，满城春色宫墙柳。</p></div>
<div><p>东风恶，欢情薄，一怀愁绪，几年离索，错错错。</p></div>
"""

#非贪婪匹配
r_list = re.findall('<div><p>(.*?)</p></div>',html,re.S)
print(r_list)

#贪婪匹配
r1_list = re.findall('<div><p>(.*)</p></div>',html,re.S)
print(r1_list)